﻿using _17bangMVC.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace _17bangMVC.Controllers
{
    public class MoneyTradeController : Controller
    {
        //private MoneyTradeRepository moneytradeRepository;
        //public MoneyTradeController()
        //{
        //    SqlDbContext context = new SqlDbContext();
        //    moneytradeRepository = new MoneyTradeRepository(context);
        //}

        // GET: MoneyTrade
        [HttpGet]
        public ActionResult Sale()
        {
            return View();
        }
        [HttpPost]
        public ActionResult Sale(MoneyTradeModel model)
        {
            if (!ModelState.IsValid)
            {
                return View(model);
            }
            return View();
        }
    }
}